package com.allwees.bs.c.module.base.controller;

import com.allwees.bs.core.model.user.context.CurrentUser;

import java.util.Optional;

public abstract class BaseController {
    protected String getUserUuid() {
        return Optional.ofNullable(CurrentUser.getUser(false)).map(CurrentUser::getUserUuid).orElse(null);
    }
}
